package com.justnow.offer;

import java.util.Scanner;

/**
 * @author justnow
 * Created on 2020-09-07
 * Description
 * 涂色Ⅱ
 */
public class Beike03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = scanner.nextInt();
        int[] arr = new int[T];
        while (scanner.hasNext()) {

        }
        for (int i = 0; i < T; i++) {
            System.out.println(0);
        }
    }
}
